package com.mrs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mrs.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    // @Select("select * from sys_user")
    // List<User> findAll();
    //
    //
    // @Insert("INSERT into sys_user(username, password,nickname,email,phone,address) VALUES (#{username}, #{password}," +
    //         " #{nickname}, #{email},#{phone}, #{address})")
    // int insert(User user);
    //
    //
    // @Delete("delete from sys_user where id = #{id}")
    // Integer deleteById(@Param("id") Integer id);
    //
    //
    // int update(User user);

    //List<User> page(Integer currentPage, Integer pageSize, String username,String email,String address);
}
